package com.autumn.aitraffic.controller;


import com.autumn.aitraffic.api.Result;
import com.autumn.aitraffic.service.ISpecialVehiclesService;
import com.autumn.aitraffic.service.impl.SpecialVehiclesServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wzx
 * @since 2025-03-01
 */
@RestController
@RequestMapping("/special")
@CrossOrigin(origins = "*")
public class SpecialVehiclesController {
    @Autowired
    public ISpecialVehiclesService specialVehiclesService;
    @GetMapping
    public Result getSpecialVehicles(int typeCar,int typeVio,String startDate,String endDate) {
        return specialVehiclesService.getSpecialVehicles(typeCar,typeVio,startDate,endDate);
    }
}
